package com.ny.service;

import com.ny.entity.Student;

import java.sql.SQLException;
import java.util.List;

public interface StudentService {
    int add(Student student) throws SQLException, ClassNotFoundException;
    Student login(String studentName, String studentPassword) throws SQLException;

    List<Student> findAllStudents();

    Student getStudentById(int id);

    int insertStudent(Student student);

    int updateStudent(Student student);

    int deleteStudent(int id);

    int updatePassword(String studentName, String oldPassword, String newPassword) throws SQLException;



}
